<template>
	<!-- vue content -->
	<view>
		<view class="common-body bg-common">
			<view class="ver pd-lr50 pd-tb25" style="padding-bottom: 300rpx;">
				<div v-html="str" class="mg-t-20" style="padding-bottom: 100rpx;"></div>
			</view>
		</view>
	</view>
</template>

<script>
	import Vue from 'vue'

	let _this
	export default {
		data() {
			return {
				id: "", //默认的商店id
				platform: 1, //1.h5 2.微信MP
				contentHeight: 0, //内容高度

				type: 1,

				str: "",
			};
		},
		onReady: function() {
			_this = this

		},
		onShow() { //页面恢复展示时
			_this = this

		},
		onLoad(option) { ////页面加载时
			this.initUser(option, this, false);

			this.type = option.type;
			this.sendRequest({
				url: "login/getAuthorizeInfo?type=" + this.type,
				data: {},
				page: _this,
				method: "GET",
				success: function(res) {
					if (_this.type == 1) {
						_this.str = res.data.policy;
					} else {
						_this.str = res.data.agreement;
					}


				},
				fail: function(e) {}
			})


		},
		methods: {

		}
	};
</script>

<style lang="scss">
	html,
	body,
	page {
		width: 100%;
		height: 100%;
		background-color: #F8F8F8;
	}
</style>